package games;

import java.util.Random;

public class Dice {

    private static Dice m_instance = null;
    private Dice(){
        System.out.println("Dice created.");
    }

    public static Dice getDice(){
        if (m_instance == null){
            m_instance = new Dice();
        }
        return m_instance;
    }

    int rollDice(){
        System.out.println("Rooolling dicee....");
        Random rand = new Random();
        return (rand.nextInt(6) + 1);
    }


}
